package com.example.taobaounion3.utils;

public class urlUtils {

    public static String createHomePagerUrl(int materialLd, int page){
        return  "discovery/"+materialLd+"/"+page;
    }

    public static String getCoverPath(String pict_url) {
        return "https:"+pict_url;
    }

    public static String addHttpsTotUrl(String url) {
        if (url.startsWith("http")||url.startsWith("https")) {
            return url;
        }else {
            return "https:"+url;
        }
    }

    public static String getSelectedPageContentUrl(int categoryId) {
        return "recommend/"+categoryId;
    }

}
